package com.yiren.manager.service.impl;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.google.common.cache.Cache;

@Aspect
@Component
public class NoRepeatSubmitAop {

	private Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private Cache<String, Integer> cache;

	@Pointcut("execution(public * com.yiren.manager.*ctrl.*(..))")
	public void declearJoinPointExpression() {
	}

	@Around(value="declearJoinPointExpression()")
	public Object arround(ProceedingJoinPoint pjp) {
		Object result = null;
		System.out.println("=======================1111111111");
		return result;
	}

}
